package com.qianfeng.enums;

public enum CommonEnum {
    OK(200,"成功"),
    ADD_DEPT_ERROR(201,"添加部门失败"),
    DELETE_DEPT_ERROR(202,"删除部门失败"),
    UPDATE_DEPT_ERROR(203,"更新部门失败"),

    ADD_ROLE_ERROR(204,"添加角色失败"),
    DELETE_ROLE_ERROR(205,"删除角色失败"),
    UPDATE_ROLE_ERROR(206,"更新角色失败"),

    ADD_EMPLOYEE_ERROR(208,"添加员工失败"),
    DELETE_EMPLOYEE_ERROR(209,"删除员工失败"),
    UPDATE_EMPLOYEE_ERROR(210,"更新员工失败"),

    ADD_ATTENDANCE_ERROR(212,"申请加班/请假失败"),
    DELETE_ATTENDANCE_ERROR(213,"删除申请加班/请假失败"),
    UPDATE_ATTENDANCE_ERROR(214,"更新申请加班/请假失败"),

    ADD_SUBJECT_ERROR(216,"添加学科失败"),
    DELETE_SUBJECT_ERROR(217,"删除学科失败"),
    UPDATE_SUBJECT_ERROR(218,"更新学科失败"),

    ADD_CLASS_ERROR(216,"添加班级失败"),
    DELETE_CLASS_ERROR(217,"删除班级失败"),
    UPDATE_CLASS_ERROR(218,"更新班级失败"),

    ADD_STUDENT_ERROR(219,"添加学生失败"),
    DELETE_STUDENT_ERROR(220,"删除学生失败"),
    UPDATE_STUDENT_ERROR(221,"更新学生失败"),
    ERROR(-1,"系统异常");

    private Integer code;
    private String msg;

    CommonEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
